package org.apache.harmony.javax.security.auth.spi;

import java.util.Map;
import org.apache.harmony.javax.security.auth.Subject;
import org.apache.harmony.javax.security.auth.callback.CallbackHandler;
import org.apache.harmony.javax.security.auth.login.LoginException;

public abstract interface LoginModule
{
  public abstract boolean abort()
    throws LoginException;

  public abstract boolean commit()
    throws LoginException;

  public abstract void initialize(Subject paramSubject, CallbackHandler paramCallbackHandler, Map<String, ?> paramMap1, Map<String, ?> paramMap2);

  public abstract boolean login()
    throws LoginException;

  public abstract boolean logout()
    throws LoginException;
}